﻿#include "concretefactory2.h"

#include <QDebug>

#include "abstractproducta.h"
#include "abstractproductb.h"
#include "concreteproducta2.h"
#include "concreteproductb2.h"

ConcreteFactory2::ConcreteFactory2() : AbstractFactory()
{

}

AbstractProductA *ConcreteFactory2::createProductA()
{
    AbstractProductA* product = new ConcreteProductA2();
    return product;
}

AbstractProductB *ConcreteFactory2::createProductB()
{
    AbstractProductB* product = new ConcreteProductB2();
    return product;
}
